
/** 
 * @description 回调消息类型枚举
 * @see https://www.sobot.com/developerdocs/service/paas_platform_demo.html#_7-1-%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B%E5%88%97%E8%A1%A8
*/
export enum ZhiChiMessageTypeEnum {
  // 通话开始 - 呼入到达智齿系统或者呼出时开始呼叫
  StartService = 'StartService',
  // 呼叫结束	- 整个通话结束
  StopService	= 'StopService',
  // 电话接起 - 用户或者坐席的电话接起	
  PhoneStateConnected = 'PhoneStateConnected',
  // 坐席电话接起
  PhoneStateAgentConnected = 'PhoneStateAgentConnected',
  // 用户电话接起
  PhoneStateUserConnected = 'PhoneStateUserConnected',
  // 电话挂断 -	用户或者坐席的电话挂断
  PhoneStateDisConnected = 'PhoneStateDisConnected',
  // 话机空闲
  PhoneStateIdle = 'PhoneStateIdle',
  // 话机振铃
  PhoneStateRing = 'PhoneStateRing',
  // 坐席振铃
  PhoneStateAgentRing = 'PhoneStateAgentRing',	
  // 用户振铃
  PhoneStateUserRing = 'PhoneStateUserRing',
  // 坐席状态忙碌
  AgentStateBusy = 'AgentStateBusy',	
  // 坐席状态异常
  AgentStateException = 'AgentStateException',
  // 坐席后处理
  AgentStateAfterWorking = 'AgentStateAfterWorking',
  // 坐席空闲
  AgentStateIdle = 'AgentStateIdle',
  // 坐席通话中
  AgentStateTalking = 'AgentStateTalking',
  // 坐席离线
  AgentStateLogOut = 'AgentStateLogOut',
  // 转接接通
  TransferConnected = 'TransferConnected',
  // 转接振铃
  TransferRing = 'TransferRing',
  // 转接确认
  TransferConfirm = 'TransferConfirm',	
  // 转接挂断
  TransferHangup = 'TransferHangup',
  // 监听振铃消息
  MonitorRing = 'MonitorRing',
  // 监听接通消息
  MonitorConnected = 'MonitorConnected',
  // 取消监听消息
  MonitorCancer = 'MonitorCancer',
  // 监听后管理员挂机消息
  AgentHangUp = 'AgentHangUp'
}

/** 
 * @description 坐席状态枚举
 * @see https://www.sobot.com/developerdocs/service/paas_platform_demo.html#_4-8-%E6%9F%A5%E8%AF%A2%E5%9D%90%E5%B8%AD%E7%8A%B6%E6%80%81
*/
export enum ZhiChiAgentStateEnum {
  Offline = -1,
  // 忙碌
  Busy = 0,
  // 空闲
  Idle = 1,
  // 小休
  SmallBreaks = 114,
  // 培训
  Training = 116,
  // 会议
  Meeting = 117,
  // 用餐
  Meals = 118,
  // 活动
  Activity = 119,
}